Conversation
- Handle optional patch property correctly with exactOptionalPropertyTypes - Use conditional spread operator to only include patch when present
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 v0.2.0 - Major Feature Expansion & E2E Testing
📋 Overview
This release significantly expands the
github-typescript-utilspackage with 50+ new utility functions across 9 categories, comprehensive testing infrastructure, and end-to-end validation with thegithub-typescriptcomposite action.✨ New Features
🔧 New Utility Categories
⚙️ Input Processing
sanitizeInput()- Remove quotes from workflow inputssanitizeInputs()- Sanitize all string properties in objectsgetBranch()- Extract branch from any GitHub event type🔤 String Utilities
snakeToCamel()/camelToSnake()- Snake case ↔ camel case conversionkebabToCamel()/camelToKebab()- Kebab case ↔ camel case conversioncapitalize()/toTitleCase()- Text capitalization utilities🌿 Branch Management
checkBranchExists()- Verify branch existencelistAllBranches()- Get all repository branchesgetBranchProtection()- Retrieve branch protection rulesgetDefaultBranch()- Get repository default branch🚀 Deployment Management
listDeployments()- List repository deploymentscreateDeployment()- Create new deploymentssetDeploymentStatus()- Update deployment statusgetDeploymentStatuses()- Get deployment status historydeleteDeployment()- Remove deployments🔍 Advanced PR Search
findPRsWithLabels()- Find PRs with specific label combinationssearchPullRequests()- Advanced PR search with multiple criteriafindOpenPRsWithLabel()- Convenience function for open PR searchescheckLabelConflicts()- Detect label conflicts between PRs💬 Enhanced Comment Management
deleteComment()- Remove comments by IDdeleteStickyComment()- Remove sticky comments by identifier🧪 Testing Infrastructure
Comprehensive Test Suite
createMockContexthelperE2E Testing with github-typescript
github-typescriptcomposite actionfile:../../dependencyTesting Tools
📚 Documentation Improvements
Enhanced README
Better Developer Experience
🔧 Technical Improvements
Build & Development
Package Management
Bug Fixes
getPullRequestFiles()to conditionally include patch property🚀 CI/CD Enhancements
Workflow Improvements
Quality Assurance
📊 Package Stats
🔄 Breaking Changes
None - this is a feature addition release maintaining full backward compatibility.
📦 Migration Guide
No migration needed - all existing code continues to work. New utilities are available for import:
🎯 What's Next
This release establishes
github-typescript-utilsas a comprehensive toolkit for GitHub Actions automation. Future releases will focus on:Ready to upgrade? Install with
pnpm add github-typescript-utils@^0.2.0and explore the new utilities! 🚀